package com.yj.provider.exception;

public class BusException extends RuntimeException {

    private int code;
    private String message;

    public BusException() {
        super();
    }

    public BusException(String message) {
        super(message);
        this.message = message;
    }

    public BusException(ExceEnum type){
        this.code = type.getCode();
        this.message = type.getMessage();
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
